package com.xiangwei.entity;

import java.util.HashMap;
import java.util.Map;

public class QRcodeMap {

	/**
	 * 动态插入二维码表
	 * @param qRcode
	 * @return
	 */
	public static Map<String, Object> createMap(Qrcode qRcode){
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("qrcodeId", 0);
//		map.put("vendorId", qRcode.getVendorId());
//		map.put("productId", qRcode.getProductId());
//		map.put("qrcodeBatchNo", qRcode.getQrcodeBatchNo()==null?"":qRcode.getQrcodeBatchNo());
//		map.put("qrcodeBatchNum", qRcode.getQrcodeBatchNum()==null?"":qRcode.getQrcodeBatchNum());
//		map.put("qrcodeScanCount", qRcode.getQrcodeScanCount()==null?0:qRcode.getQrcodeScanCount());
//		map.put("isWinning", qRcode.getIsWinning()==null?"":qRcode.getIsWinning());
//		map.put("winningPrize", qRcode.getWinningPrize()==null?"":qRcode.getWinningPrize());
//		map.put("memo", qRcode.getMemo()==null?"":qRcode.getMemo());
//		map.put("creator", qRcode.getCreator()==null?0:qRcode.getCreator());
//		map.put("isDelete", qRcode.getIsDelete()==null?0:qRcode.getIsDelete());
//		map.put("updater", qRcode.getUpdater()==null?0:qRcode.getUpdater());
//		map.put("checkCount", qRcode.getCheckCount());
//		map.put("checkTime", qRcode.getCheckTime()==null?"":qRcode.getCheckTime());
//		map.put("province", qRcode.getProvince()==null?"":qRcode.getProvince());
//		map.put("city", qRcode.getCity()==null?"":qRcode.getCity());
		return map;
	}
}
